import request from '@/utils/request'

// 查询不良行为列表
export function listCompete_bad_behavior(query) {
  return request({
    url: '/business/compete_bad_behavior/list',
    method: 'get',
    params: query
  })
}

// 查询不良行为详细
export function getCompete_bad_behavior(behaviorId) {
  return request({
    url: '/business/compete_bad_behavior/' + behaviorId,
    method: 'get'
  })
}

// 新增不良行为
export function addCompete_bad_behavior(data) {
  return request({
    url: '/business/compete_bad_behavior',
    method: 'post',
    data: data
  })
}

// 修改不良行为
export function updateCompete_bad_behavior(data) {
  return request({
    url: '/business/compete_bad_behavior',
    method: 'put',
    data: data
  })
}

// 删除不良行为
export function delCompete_bad_behavior(behaviorId) {
  return request({
    url: '/business/compete_bad_behavior/' + behaviorId,
    method: 'delete'
  })
}
